Fix cfg of platform-specific tests
authorAkos Kiss <akiss@inf.u-szeged.hu>
Mon, 5 Jan 2015 15:53:22 +0000 (15:53 +0000)
committerAkos Kiss <akiss@inf.u-szeged.hu>
Mon, 5 Jan 2015 15:53:22 +0000 (15:53 +0000)
tests/test_cargo_compile.rs

index b8dbb4bd1ef61bda112b039aebccab0686d402d5..bff29e02d0577cc6905d96bb2552d25fd3e838ac 100644 (file)
@@ -1357,7 +1357,7 @@ Caused by:
 "));
 });
 
-#[cfg(target_os = "linux")]
+#[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), target_os = "linux"))]
 test!(cargo_platform_specific_dependency {
     let p = project("foo")
         .file("Cargo.toml", r#"
@@ -1398,7 +1398,7 @@ test!(cargo_platform_specific_dependency {
       execs().with_stdout("test passed\n"));
 });
 
-#[cfg(not(target_os = "linux"))]
+#[cfg(not(all(any(target_arch = "x86", target_arch = "x86_64"), target_os = "linux")))]
 test!(cargo_platform_specific_dependency {
     let p = project("foo")
         .file("Cargo.toml", r#"